//
//  speciallmage.m
//  project-A (pianke)
//
//  Created by dllo on 16/3/2.
//  Copyright © 2016年 scott. All rights reserved.
//

#import "specialImage.h"

@implementation specialImage

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)dealloc{
    
    [_special release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        self.special = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 40, 40)];
        
        [self addSubview:self.special];
        
        [self.special release];
    }
    return self;
}


-(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    self.block();
    
    
}


@end
